/* TimePattern.java
 * Author: liuex
 * 2007-12-18 ����01:36:54
 *
 * Note: 
 */
package org.lex.utils.logging.pattern;

import java.text.DateFormat;

import org.lex.utils.text.DateTimeUtilities;


public class TimePattern extends TimeBasedPattern {
	private DateFormat format = null;

	public TimePattern(String pattern) {
		super(pattern);
	}

	@Override
	public DateFormat getDateFormat() {
		if (null == format)
			format = DateTimeUtilities.getTimeFormat(this.getStyle());
		return this.format;
	}
}
